package cn.zyjblogs.starter.redis.utils.lock;

import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

import java.util.Collection;

@Component
public class DefaultLockKeyBuilder implements LockKeyBuilder {

    @Override
    public String buildKey(Collection<String> definitionKeys) {
        return StringUtils.collectionToDelimitedString(definitionKeys, ".", "", "");
    }
}
